<%@page import="com.aspire.boc.mms.wmf.model.SecurityUser"%>
<%@page contentType="text/html;charset=UTF-8;" pageEncoding="UTF-8"%>
<%
	SecurityUser securityUser = (SecurityUser)request.getSession().getAttribute("securityUser");
    String userObj = securityUser.getLoginName();
%>
<html>   
    <head>   
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">   
        <title id="page-title">loading</title>   
        <link rel="stylesheet" type="text/css" href="ext/resources/css/ext-patch.css"> 
        <link rel="stylesheet" type="text/css" href="ext/resources/css/ext-all.css">  
        <style type="text/css">  
            body {  
                margin-top: 30px;  
                margin-right: 30px;  
                margin-bottom: 30px;  
                margin-left: 30px;  
            }
            
            #loading-mask{
	        background-color:white;
	        height:100%;
	        position:absolute;
	        left:0;
	        top:0;
	        width:100%;
	        z-index:20000;
	    	}
		    #loading{
		        height:auto;
		        position:absolute;
		        left:45%;
		        top:40%;
		        padding:2px;
		        z-index:20001;
		    }
		    #loading a {
		        text-decoration:none;
		        color:#225588;
		    }
		    #loading .loading-indicator{
		        width:300px;
		        background:white;
		        color:#444;
		        font:bold 12px Helvetica, Arial, sans-serif;
		        height:auto;
		        padding:10px 0 0 0;
		        align:center;
		    }
		    #loading-msg {
		        font-size: 10px;
		        font-weight: normal;
		    }
        </style>  
    </head>   
    <div id="loading-mask"></div>
    <div id="loading">
    <div class="loading-indicator">
      <img src="${pageContext.request.contextPath}/resources/jbobanim.gif" width="32" height="32" style="margin-right:4px;float:left;vertical-align:top;"/>
        <br />
        <span id="loading-msg">Loading core API...</span>
    </div>
	</div>
    <body> 
    <script type="text/javascript" src="ext/ext-all.js"></script>
        <script type="text/javascript" src="ext/locale/ext-lang-zh_CN.js"></script>
        <script>
        	var contextPath = '${pageContext.request.contextPath}';
        	var logonName = '<%=userObj%>';
        </script>
        <script type="text/javascript" src="wmf.js"></script>
        <script type="text/javascript" src="common.js"></script>
        <script type="text/javascript" src="json2.js"></script>
        <script type="text/javascript" src="app/lib/direct.js"></script>
        <script type="text/javascript" src="app/lib/locale.js"></script>
        <script type="text/javascript" src="app/lib/vtypes.js"></script>
        <script type="text/javascript" src="app/lib/combotree.js"></script>
        <script type="text/javascript" src="app/app.js"></script>
        <script type="text/javascript">
        	document.getElementById('loading-msg').innerHTML = 'Initializing...';
 			(function(){
 				var v = Ext.getDoc().getViewSize(false);
 				var s = Ext.get('loading').dom.style;
 				s.left= v.width*0.45;
 			})();
		</script>
    </body>   
</html>  